package mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mengshx
 * @since 2021-01-30
 */
public class BookHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 无意义，主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer accountid;

    /**
     * book的id
     */
    private Integer bookid;

    /**
     * 书读到了第几页
     */
    private Integer page;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAccountid() {
        return accountid;
    }

    public void setAccountid(Integer accountid) {
        this.accountid = accountid;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    @Override
    public String toString() {
        return "BookHistory{" +
        "id=" + id +
        ", accountid=" + accountid +
        ", bookid=" + bookid +
        ", page=" + page +
        "}";
    }
}
